package com.example.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.system.domain.entity.Project;
import com.example.system.domain.model.ProjectKind;
import com.example.system.domain.vo.ProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (SysProject)表数据库访问层
 */
@Mapper
public interface ProjectMapper extends BaseMapper<Project> {
    List<Project> getProjectByIds(@Param("projectIds") List<Integer> projectIds);

    List<Project> getProjectList();

    List<ProjectKind> getProjectKindList(@Param("year") String year);

    List<ProjectKind> getProjectKindListOnePerson(@Param("year") String year, @Param("account") String account);

    ProjectVo getProjectByName(@Param("name") String name);

    void insertProjectList(@Param("list") List<Project> projectList);

    int insertProject(Project project);
}

